<?php

namespace app\admin\model;

use think\Model;

class AdminUser extends Model
{
    protected $pk = 'id';

    protected $name = 'admin_user';

    public function withAdminRole()
    {
        return $this->hasOne(AdminRole::class, 'id', 'role_id');
    }
}
